package com.yeyks.controller;


import com.yeyks.model.Ajax.AjaxParamOverviewIndex;
import com.yeyks.model.Ajax.AjaxResponseBody;
import com.yeyks.model.em.ResponseStatus;
import com.yeyks.model.Ajax.AjaxParamOverviewIndex;
import com.yeyks.model.Ajax.AjaxResponseBody;
import com.yeyks.model.em.ResponseStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
public class OverviewController {

    @ApiIgnore
    @RequestMapping(value = "/ajax/overview/index", method = RequestMethod.GET)
    public ResponseEntity<?> add(
            @RequestParam(name = "token", defaultValue = "", required = true) String token,
            AjaxParamOverviewIndex overviewIndex
    ){
        AjaxResponseBody response = new AjaxResponseBody();

        try {



            response.setCode(ResponseStatus.RS_SUCCESS.getCode());
            response.setMsg(ResponseStatus.RS_SUCCESS.getMsg());
        } catch (Throwable e) {
            response.setCode(ResponseStatus.RS_SUCCESS.getCode());
            response.setMsg(ResponseStatus.RS_SUCCESS.getMsg());
        }

        return ResponseEntity.ok(response);
    }
}
